package routers

import (
	"gvb_server/api"
)

// 这些操作都是和数据库操作有关
func (router RouterGroup) MessageRouter() {
	app := api.ApiGroupApp.MessageApi
	router.POST("messages", app.MessageCreateView)
	router.GET("messages_all", app.MessageListAllView)
	router.GET("messages", app.MessageListView)
	router.POST("messages_record", app.MessageRecordView)
}
